<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:91:"D:\fangcms\fangcms_city_add\public/../application/manage\view\collection_article\index.html";i:1496545477;s:80:"D:\fangcms\fangcms_city_add\public/../application/manage\view\Public\header.html";i:1490355172;s:80:"D:\fangcms\fangcms_city_add\public/../application/manage\view\Public\footer.html";i:1474280020;}*/ ?>
<!doctype html>
<html>
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<link href="__CSS__/style.css" rel="stylesheet"/>
	<title>管理中心</title>

</head>

<body>
<div id="J_ajax_loading" class="ajax_loading">加载中...</div>

<div class="subnav">
    <div class="content_menu ib_a blue line_x">
        <?php if(!empty($sub_menu) OR !empty($big_menu)): if(!(empty($big_menu) || (($big_menu instanceof \think\Collection || $big_menu instanceof \think\Paginator ) && $big_menu->isEmpty()))): if(isset($normal)): ?>
        <a class="add fb" href="<?php echo $big_menu['iframe']; ?>"><em><?php echo $big_menu['title']; ?></em></a>
        <?php else: ?>
    	<a class="add fb J_showdialog" href="javascript:void(0);" data-uri="<?php echo $big_menu['iframe']; ?>" data-title="<?php echo $big_menu['title']; ?>" data-id="<?php echo $big_menu['id']; ?>" data-width="<?php echo $big_menu['width']; ?>" data-height="<?php echo $big_menu['height']; ?>"><em><?php echo $big_menu['title']; ?></em></a>
        <?php endif; endif; if(!(empty($sub_menu) || (($sub_menu instanceof \think\Collection || $sub_menu instanceof \think\Paginator ) && $sub_menu->isEmpty()))): if(is_array($sub_menu) || $sub_menu instanceof \think\Collection || $sub_menu instanceof \think\Paginator): $key = 0; $__LIST__ = $sub_menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($key % 2 );++$key;if($key != 1): ?><span>|</span><?php endif; ?>
        <a href="<?php echo $val['url']; ?>" class="<?php echo $val['class']; ?>"><em><?php echo $val['name']; ?></em></a>
        <?php endforeach; endif; else: echo "" ;endif; endif; endif; ?>
    </div>
</div>

<!--列表-->
<div class="pad_lr_10" >
    <div class="J_tablelist table_list" data-acturi="<?php echo url('ajaxEdit'); ?>">
        <table width="100%" cellspacing="0">
            <thead>
            <tr>
                <th  align="left" width="20"><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th align="left">ID</th>
                <th align="left">名称</th>
                <th align="left">最后采集时间</th>
                <th align="left">内容操作</th>
                <th align="left">管理</th>
            </tr>
            </thead>
            <tbody>
            <?php if(is_array($lists) || $lists instanceof \think\Collection || $lists instanceof \think\Paginator): $i = 0; $__LIST__ = $lists;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?>
                <tr>
                    <td align="left"><input type="checkbox" class="J_checkitem" value="<?php echo $val['nodeid']; ?>"></td>
                    <td align="left"><?php echo $val['nodeid']; ?></td>
                    <td align="left"><?php echo $val['name']; ?></td>
                    <td align="left"><?php if(!(empty($val['lastdate']) || (($val['lastdate'] instanceof \think\Collection || $val['lastdate'] instanceof \think\Paginator ) && $val['lastdate']->isEmpty()))): ?><?php echo date("Y-m-d H:i:s",$val['lastdate']); else: ?>无采集<?php endif; ?></td>
                    <td align="left">
                        [<a href="<?php echo url('colUrl',['id'=>$val['nodeid']]); ?>">采网址</a>]
                        [<a href="<?php echo url('colContent',['id'=>$val['nodeid']]); ?>">采内容</a>]
                        [<a href="<?php echo url('publish',['id'=>$val['nodeid'],'status'=>2]); ?>">内容发布</a>]
                    </td>
                   <td align="left"><?php echo rights($options,$val['nodeid'],$val['name'],$menuid); ?></td>
                </tr>
            <?php endforeach; endif; else: echo "" ;endif; ?>
            </tbody>
        </table>

        <div class="btn_wrap_fixed">
            <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">全选/取消</label>
            <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="<?php echo url('delete'); ?>" data-name="id" data-msg="确认要删除所选记录么" value="删除" />
            <div id="pages"><?php echo $pages; ?></div>
        </div>
    </div>
</div>
<script src="__PUBLIC__/js/jquery.min.1.7.2.js"></script>
<script src="__JS__/manage.js"></script>
<script src="__JS__/admin.js"></script>
<script>
//初始化弹窗
(function (d) {
    d['okValue'] = '确定';
    d['cancelValue'] = '取消';
    d['title'] = '标题';
})($.dialog.defaults);
</script>
<script src="__PUBLIC__/js/plugins/formvalidator.js"></script>
<?php if(isset($list_table)): ?>
<script src="__PUBLIC__/js/plugins/listTable.js"></script>
<script>
$(function(){
	$('.J_tablelist').listTable();
});
</script>
<?php endif; ?>

</body>
</html>
